<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>合同定制</title>
    <link href="css/style.css" rel="stylesheet">
    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
        }

        .head {
            margin: 10px;
        }

        .head1 {
            margin: 10px;
            padding: 10px;
            border: solid 1px rgb(212, 212, 212);
            width: 250px;
            height: 180px;
            float: left;
            box-shadow: 3px 3px 3px #e7e7e7;
            position: relative;
        }

        .head2 {
            text-decoration: none;
            color: rgb(89, 64, 252);
        }

        .head3 {
            text-decoration: none;
            font-size: x-small;
        }

        .img {
            width: 100px;
            padding-right: 10px;
            float: left;
        }

        .text {
            margin-top: 20px;
            width: 240px;
            height: 100px;
            position: absolute;
            bottom: 10px;
            border: solid 1px rgb(212, 212, 212);
        }

        .head1 .head2 .head3 .text .img {
            background-color: #fff;
        }
        .page-turn{

            height: 100px;

            width: 100%;

            position: fixed;

            bottom: 0;
                left: 250px;
        }
        a{
            text-decoration: none;
        }
    </style>
    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#goTo").on("click", function () {
                window.location.assign("/contract/customServiceList?pageNum=" + $("#pageNum").val());
            });
        });
    </script>
</head>


<body style="background-color: rgb(250, 250, 250);">


<div>
    <div class="head"><a>法律文书->合同定制</a></div>

    <div th:each="contract:${page.list}" class="loadCustom">
        <a th:href="@{~/contract/customServiceDetail(id=${contract.id})}">
            <div class="head1">
                <div class="img"><img src="img/2.jpg" class="img"/></div>
                <p class="head2" th:text="${contract.name}">保密协议</p></br>
                <p class="head3">性质：针对企业/个人</p>
                <div class="text" th:text="${contract.contractRecord.remark}">合同简介</div>
            </div>
        </a>
    </div>

</div>

<div  class="page-turn"  >
    <div class="" th:if="${page.pages>0}">
        <a th:href="@{~/contract/customServiceList(pageNum=1)}">
            <button id="home" class="">首页</button>
        </a>
        <a th:href="@{~/contract/customServiceList(pageNum=${page.pageNum -1})}">
            <button id="prev" class="">上页</button>
        </a>
        <input name="pageNum" type="number" id="pageNum"/>
        <button id="goTo" class="">转到</button>
        <a th:href="@{~/contract/customServiceList(pageNum=${page.pageNum+1})}">
            <button id="next" class="">下页</button>
        </a>
        <a th:href="@{~/contract/customServiceList(pageNum=${page.pages})}">
            <button id="last" class="">尾页</button>
        </a>
    </div>
</div>



</body>

</html>